package com.example.androidexample.base;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.androidexample.R;
import com.example.basic.configinfo.APKInfo;
import com.example.basic.configinfo.DeviceInfo;

public class BaseInfoActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_base_info);
        initSignatureInfo();
    }

    private void initSignatureInfo() {
        TextView tvDeviceInfo = findViewById(R.id.tv_device_info);
        tvDeviceInfo.setText(DeviceInfo.getDeviceInfoStr());

        TextView tvApkInfo = findViewById(R.id.tv_apk_info);
        tvApkInfo.setText(APKInfo.getApkInfoStr());
    }
}
